package model

// 用户表
type User struct {
	Id uint64 `json:"id" gorm:"auto_increment"`
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
	Icon string `json:"icon" form:"icon"`
	Status int `json:"status" form:"status"`
	Ext string `json:"ext" form:"ext"`
	Email string `json:"email" form:"email"`
	Tel string `json:"tel" form:"tel"`
}

// TableName 表示把 User 结构体默认操作的表改为 user 表
func (User) TableName() string{
	return "gr_user"
}
